import React, { memo } from 'react';
import { HeaderWrapper } from '@/components/section-header/style'

const SectionHeader = memo((props) => {

  const {title, subtitle} = props;
  return (
    <HeaderWrapper>

      <h2 className="title">{ title }</h2>
      { subtitle && <div className="subtitle">{ subtitle }</div> }
    </HeaderWrapper>
  );
});

export default SectionHeader;
